package cn.tuling.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@CrossOrigin
public class TestViewController {

    @RequestMapping("/testView")
    public String testView() {
        // ... 省略拿到数据返回给视图
        return "testView";
    }


    @RequestMapping("/html")
    public String testHtml() {
        return "hello";
    }
}
